﻿namespace DatabaseDoc.Library
{    
    /// <summary>
    /// Column details
    /// </summary>
    public class Column
    {
        /// <summary>
        /// Gets or sets a value indicating whether this is part of a primary key.
        /// </summary>
        /// <value><c>true</c> if part of a primary key; otherwise, <c>false</c>.</value>
        public bool InPrimaryKey { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the type of the data.
        /// </summary>
        /// <value>The type of the data.</value>
        public string DataType { get; set; }

        /// <summary>
        /// Gets or sets the size of the data type.
        /// </summary>
        /// <value>The size of the data type.</value>
        public int DataTypeSize { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="Column"/> is nullable.
        /// </summary>
        /// <value><c>true</c> if nullable; otherwise, <c>false</c>.</value>
        public bool Nullable { get; set; }        
    }
}